package com.zh.note.service.impl;

import com.zh.note.service.MemberService;
import org.springframework.stereotype.Service;

/**
 * @author zhanghang
 * 单元测试用的
 */
@Service
public class MemberServiceImpl implements MemberService {


    @Override
    public String add(Integer id) {

        System.out.println("come in add User,your uid is :" + id);
        if (id == -1) {
            throw new IllegalArgumentException("id can not be -1");
        }
        return "ok";
    }

    @Override
    public int del(Integer id) {
        System.out.println("come in del User, your uid is :" + id);
        return id;
    }
}
